﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000C7 RID: 199
	internal class Str16String : IStringDecoder
	{
		// Token: 0x060002FC RID: 764 RVA: 0x0000BD6F File Offset: 0x0000A16F
		private Str16String()
		{
		}

		// Token: 0x060002FD RID: 765 RVA: 0x0000BD78 File Offset: 0x0000A178
		public string Read(byte[] bytes, int offset, out int readSize)
		{
			int num = ((int)bytes[offset + 1] << 8) + (int)bytes[offset + 2];
			readSize = num + 3;
			return StringEncoding.UTF8.GetString(bytes, offset + 3, num);
		}

		// Token: 0x040000E4 RID: 228
		internal static readonly IStringDecoder Instance = new Str16String();
	}
}
